package com.fatdetection.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fatdetection.demo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT b.id, b.username, b.student_id, b.school_name  FROM `groups` a LEFT JOIN `user` b ON a.group_id = b.group_id WHERE a.project_name =#{projectName}")
    List<User> findUserByProj(String projectName);

}
